#include<stdio.h>
#include<stdlib.h>
#include<iostream>
using namespace std;

void choose(char weekday[][10]){
    int a;
    cin>>a;
    puts(weekday[a-1]);
}
int main(){
    char weekday[][10]={"Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"};
    choose(weekday);
    return 0;
}